﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BaseLinQ.DataContex;
using DevExpress.Web.ASPxGridView;
using Module;

namespace Solutions.Admin.QuanLyPhanHoi
{
    public partial class QuanLyPhanHoi : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        public void grdTest_RowCommand(object sender, ASPxGridViewRowCommandEventArgs e)
        {
            int id = Convert.ToInt32(e.KeyValue);
            switch (e.CommandArgs.CommandName)
            {
                case "Edit":
                    EditMenu(id);
                    break;
                case "Delete":
                    DeleteMenu(id);
                    break;
            }
        }
        protected void DeleteMenu(long id)
        {
            
        }

        protected void EditMenu(long id)
        {
            
            txtTenMenu.Focus();
            wdsQuanLyMenu.ShowOnPageLoad = true;
        }
    }
}